package top.blackr.folivora.common.security.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;
import top.blackr.folivora.common.security.auth.LoginAuthentication;
import top.blackr.folivora.common.security.auth.SecUser;
import top.blackr.folivora.common.security.auth.authInfo.AuthenticationInfo;

@Getter
public class LoginAfterEvent extends ApplicationEvent {

    private final AuthenticationInfo
            authenticationInfo;
    private final LoginAuthentication authentication;
    private final SecUser user;

    public LoginAfterEvent(Object source, AuthenticationInfo authenticationInfo, LoginAuthentication authentication, SecUser user) {
        super(source);
        this.authenticationInfo = authenticationInfo;
        this.authentication = authentication;
        this.user = user;
    }
}
